/**
 * 统一管理管理员用户登录相关的接口
*/
import { requestHttp } from "@/utils/requestHttp.ts";

//引入数据类型约束
import { loginParams } from "@/api/login/type.ts";


//登录接口
export const reqLogin = (loginForm:loginParams) => {
    return requestHttp<string>({
        url:"/manage/login",
        method:"post",
        data:{
            username:loginForm.username,
            password:loginForm.password,
            captchaCode:loginForm.captchaCode
        }
    })
}


//用户退出登录接口
export const reqLogout = () => {
    
}


//获取图片验证码接口
export const reqPictureCaptcha = () => {
    return requestHttp({
        url:"/captcha/picture/base64",
        method:"get"
    })
}
